package com.alipay.lifeaccount.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 文章和生活号中间表
 * </p>
 *
 * @author 进击的Coder
 * @since 2019-01-12
 */
@TableName("ali_life_article")
public class LifeArticle extends Model<LifeArticle> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id自增
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 生活号id
     */
	@TableField("life_account_id")
	private Integer lifeAccountId;
    /**
     * 文章id
     */
	@TableField("article_id")
	private Integer articleId;
    /**
     * 状态
     */
	private Integer status;


	public Integer getId() {
		return id;
	}

	public LifeArticle setId(Integer id) {
		this.id = id;
		return this;
	}

	public Integer getLifeAccountId() {
		return lifeAccountId;
	}

	public LifeArticle setLifeAccountId(Integer lifeAccountId) {
		this.lifeAccountId = lifeAccountId;
		return this;
	}

	public Integer getArticleId() {
		return articleId;
	}

	public LifeArticle setArticleId(Integer articleId) {
		this.articleId = articleId;
		return this;
	}

	public Integer getStatus() {
		return status;
	}

	public LifeArticle setStatus(Integer status) {
		this.status = status;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
